

<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%> 
<%@ include file="/framework/head.jsp"%>
<%@ page import="com.hitrust.gs.lib.GSBaseConstants" %>
<!--********************* Part2:Java Code *********************-->
<% 
    String auditing = (String)context.getValue("auditing");
    String canAuditing = (String)context.getValue("canAuditing");
    ProductSearchEvent event = (ProductSearchEvent)context.getSessionValue("ProductSearchEvent");
    if(auditing.equals("1")&&canAuditing.equals("1")){
       event.setIs_auditing(true);
    }
    //查询的产品编码长度要大于14位。
    event.setProductCodeLength("true");
    ObjectList list = Product.fetch().search(con,event);  
    ObjectList tManuf1 = ProductCategory.getCategoryLevel1(con);
    ObjectList tManuf2 = ProductCategory.getCategoryLevel2(con);
    ObjectList tManuf3 = ProductCategory.getCategoryLevel3(con);
    String isPlanPrice = (String)context.getValue("isPlanprice");

    String [] warehouseCodes = GSBaseConstants.WAREHOUSTS_NO_AUDITING;
    
   // String isAuditing = "no";
    //if(auditing.equals("1")&&canAuditing.equals("1")){
    //    isAuditing = "yes";
   // }
   // request.setAttribute("isAuditing",isAuditing );
%>

<!--********************* Part3:JavaScript Code ***************-->
<!--start 客户端脚本区域-->
<%@page import="framework.core.ConstDefine"%>
<script language=javascript>
var list_code = "listTempProductAuditing";

function setIsbuy() {
        var checkboxvalue = document.getElementsByName("temporary_manufacture");
        var selectnum = 0;
        for(i=0;i<checkboxvalue.length;i++){
            if(checkboxvalue[i].checked){
             selectnum++;             
            }
        }
        if(selectnum ==0) {
            alert("请至少选择一项产品");
            return false;
        }
        if(confirm("是否确定审核这些产品？")){
            frm.action = "<%= response.encodeURL(request.getContextPath() + "/A400390.do?auditing=yes") %>";
            frm.submit();
        }
    }


function setAuditingNo() {
        var checkboxvalue = document.getElementsByName("temporary_manufacture");
        var selectnum = 0;
        for(i=0;i<checkboxvalue.length;i++){
            if(checkboxvalue[i].checked){
             selectnum++;
              
            }
        }
        if(selectnum ==0) {
            alert("请至少选择一项产品");
            return false;
        }
        
        if(confirm("是否确定审核这些产品？")){
            frm.action = "<%= response.encodeURL(request.getContextPath() + "/A400390.do?auditing=no") %>";
            frm.submit();
        }
    }
   
function setAuditingModiy() {
        var checkboxvalue = document.getElementsByName("temporary_manufacture");
        var selectnum = 0;
        for(i=0;i<checkboxvalue.length;i++){
            if(checkboxvalue[i].checked){
             selectnum++;
              
            }
        }
        if(selectnum ==0) {
            alert("请至少选择一项产品");
            return false;
        }
        
        if(confirm("是否确定审核这些产品？")){
           window.showModalDialog("<%= response.encodeURL(request.getContextPath() + "/auditingMessageDialog.jsp") %>",window);
         }
    }
function saveAuditingModiy(message) {
        var checkboxvalue = document.getElementsByName("temporary_manufacture");
        var selectnum = 0;
        for(i=0;i<checkboxvalue.length;i++){
            if(checkboxvalue[i].checked){
             selectnum++;
              
            }
        }
        if(selectnum ==0) {
            alert("请至少选择一项产品");
            return false;
        }
        frm.action = "<%= response.encodeURL(request.getContextPath() + "/A400390.do?auditing=modify&messages=") %>"+message.value;
        frm.submit();
    }
function doSearch()
{
    SetValue("s_GrandfatherCategoryCode",GetValue("i_GrandfatherCategoryCode")); //产品分类编码
    SetValue("s_UpperCategoryCode",GetValue("i_UpperCategoryCode")); //产品分类编码
    SetValue("s_CategoryCode",GetValue("i_CategoryCode")); //产品分类编码  
    SetValue("s_ConcentricityCode",GetValue("i_ConcentricityCode")); //集中编码
    SetValue("s_Name",GetValue("i_Name")); //产品名称
    SetValue("s_Spec",GetValue("i_Spec")); //规格
    SetValue("s_Model",GetValue("i_Model")); //型号
    SetValue("s_ProductBrand",GetValue("i_ProductBrand")); //品牌
    SetValue("s_Manufaturer",GetValue("i_Manufaturer")); //生产厂家
    SetValue("s_ProviderCode",GetValue("i_ProviderCode")); //供应商
    SetValue("s_DrawingPieceCode",GetValue("i_DrawingPieceCode")); //图件号
    SetValue("s_KeyWord",GetValue("i_KeyWord"));//关键字
    //SetValue("s_IsNormal",GetValue("i_IsNormal")); //是否正式产品
    //SetValue("s_IsTradeflatProduct",GetValue("i_IsTradeflatProduct")); //是否交易平台的产品
    <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
    SetValue("s_Status",GetValue("i_Status")); //是否有效
    SetValue("s_AuditingStatus",GetValue("i_AuditingStatus")); //审核状态
    <%}%>
    SetValue("s_IsBuy",GetValue("i_IsBuy")); //是否可采购
    SetValue("s_WarehouseCode",GetValue("i_WarehouseCode")); //仓库编码
    
    SetValue("s_CreateTimeStart",GetValue("i_CreateTimeStart")); //产品创建时间
    SetValue("s_CreateTimeEnd",GetValue("i_CreateTimeEnd")); //产品创建时间
    
    SetValue("s_OrderField",GetValue("i_OrderField")); //排序
    SetValue("s_OrderDesc",getCheckBoxValues("i_OrderDesc")); //升降序
    doCommonSearch();
}

function bizViewProduct(id)
{
    viewWin("<%=Config.getSrv()%>?action_code=viewProduct&Id="+id);
}

function doUnite(){

}
function doToAdd()
{
    SetAction("toAddProduct");
    frm.submit();
}

function doToUpdate()
{
    if(!checkOne("ids")) 
    {
        bizMessage("修改","产品");
        return false;
    }
    SetValue("Id",getCheckBoxValue("ids"));
    SetAction("toUpdateProduct");
    frm.submit();
}

function doToCopy()
{
    if(!checkOne("ids")) 
    {
        bizMessage("复制","产品");
        return false;
    }
    SetValue("Id",getCheckBoxValue("ids"));
    SetAction("toCopyProduct");
    frm.submit();
}
function selectOnChange1()
{
  var val = GetValue("i_GrandfatherCategoryCode");
  if(val==''){
    var listbox = document.getElementById("i_UpperCategoryCode");
    listbox.length = 0;
    var option = new Option();
    option.text = "---二级---";
    option.value = "";
    listbox.options[listbox.length] = option;
    //change2(optval);
  }else{
      var counter="0";
      <%if(tManuf1.size()>0)
      {
          for(int i=0;i<tManuf1.size();i++)
          {
              ProductCategory pc1 = (ProductCategory)tManuf1.get(i);
              String tCode1 = pc1.getCode();
              %>
              if(val == '<%=tCode1%>')
              {
                counter="1";
                var listbox = document.getElementById("i_UpperCategoryCode");
                listbox.length = 0;
                var option1 = new Option();
                option1.text = "---二级---";
                option1.value = "";
                listbox.options[listbox.length] = option1;
                <%
                for(int n=0;n<tManuf2.size();n++)
                {
                    ProductCategory pc2 = (ProductCategory)tManuf2.get(n);
                    String tUpperCategory = pc2.getUpperCategory();
                    if(tUpperCategory == null) tUpperCategory = "";
                    if(tUpperCategory.equals(tCode1))
                    {
                        String categoryId = pc2.getCode();
                        String categoryName = pc2.getName();
                        %>
                        var temp1 = '<%=categoryId%>';
                        var temp2 = '<%=categoryName%>';
                        var option1 = new Option();
                        option1.value = temp1;
                        option1.text = temp2;
                        listbox.options[listbox.length] = option1;                       
                        <%
                    }
                }//end for
                %>
         
               }//end if
          <%
            }//end for
        }//end if
      %>
      
      if(counter == '0')
      {
          var listbox = document.getElementById("i_UpperCategoryCode");
          listbox.length = 0;
          var option = new Option();
          option.value = "";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;  
       }

   }//end else

}


function selectOnChange2()
{
  var val = GetValue("i_UpperCategoryCode");
  if(val==''){
    var listbox = document.getElementById("i_CategoryCode");
    listbox.length = 0;
    var option = new Option();
    option.text = "---三级---";
    option.value = "";
    listbox.options[listbox.length] = option;
    //change2(optval);
  }else{
      var counter="0";
      <%if(tManuf1.size()>0)
      {
          for(int i=0;i<tManuf2.size();i++)
          {
              ProductCategory pc2 = (ProductCategory)tManuf2.get(i);
              String tCode2 = pc2.getCode();
              %>
              if(val == '<%=tCode2%>')
              {
                counter="1";
                var listbox = document.getElementById("i_CategoryCode");
                listbox.length = 0;
                var option1 = new Option();
                option1.text = "---三级---";
                option1.value = "";
                listbox.options[listbox.length] = option1;
                <%
                for(int n=0;n<tManuf3.size();n++)
                {
                    ProductCategory pc3 = (ProductCategory)tManuf3.get(n);
                    String tUpperCategory = pc3.getUpperCategory();
                    if(tUpperCategory == null) tUpperCategory = "";
                    if(tUpperCategory.equals(tCode2))
                    {
                        String categoryId = pc3.getCode();
                        String categoryName = pc3.getName();
                        %>
                        var temp1 = '<%=categoryId%>';
                        var temp2 = '<%=categoryName%>';
                        var option1 = new Option();
                        option1.value = temp1;
                        option1.text = temp2;
                        listbox.options[listbox.length] = option1;                       
                        <%
                    }
                }//end for
                %>
         
               }//end if
          <%
            }//end for
        }//end if
      %>
      
      if(counter == '0')
      {
          var listbox = document.getElementById("i_CategoryCode");
          listbox.length = 0;
          var option = new Option();
          option.value = "";
          option.text = "---三级---";
          listbox.options[listbox.length] = option;  
       }

   }//end else

}

function doGet()
{
    frm.action="/gw/system/base/DownExcel.jsp";
    frm.submit();
}
function doExcel(){
    <%if(list.getTotalSize()>20000){%>
        alert("导出EXCEL产品数量不能超过20000条！");
        return false;
    <%}else{%>
        window.location.href="<%=Config.getWebPath()%>/GSproductDown";
    <%}%>
}
key_InitDefault();
key_RegSubmitHandler(doSearch);
</script>
<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->
<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code" value="">
<input type=hidden name="Id" value="">
<input type=hidden name=sortOrder value="">
<input type=hidden name="message" value="">

<!--查询条件保留区域-->
<input type=hidden name="s_ConcentricityCode" value="<%=event.getConcentricityCode()%>"> <!--集中编码-->

<!--  <input type=hidden name="s_ApepCode" value="<%=event.getApepCode()%>">--> <!--产品编码(18位)-->
<input type=hidden name="s_Name" value="<%=event.getName()%>"> <!--产品名称-->
<input type=hidden name="s_Spec" value="<%=event.getSpec()%>"> <!--规格-->
<input type=hidden name="s_Model" value="<%=event.getModel()%>"> <!--型号-->
<input type=hidden name="s_ProductBrand" value="<%=event.getProductBrand()%>"> <!--品牌-->
<input type=hidden name="s_Manufaturer" value="<%=event.getManufaturer()%>"> <!--生产厂家-->
<input type=hidden name="s_ProviderCode" value="<%=event.getProviderCode()%>"><!--供应商-->
<input type=hidden name="s_DrawingPieceCode" value="<%=event.getDrawingPieceCode()%>"> <!--图件号-->
<input type=hidden name = "s_KeyWord" value = "<%=event.getKeyWord()%>"><!-- 关键字 -->
<!-- <input type=hidden name="s_IsNormal" value="<%=event.getIsNormal()%>">  --><!--是否正式产品-->
<!-- <input type=hidden name="s_IsTradeflatProduct" value="<%=event.getIsTradeflatProduct()%>"> --> <!--是否交易平台的产品-->
<input type=hidden name="s_Status" value="<%=event.getStatus()%>">  <!--是否有效-->
<input type=hidden name="s_IsBuy" value="<%=event.getIsBuy()%>"> <!--是否可采购-->
<input type=hidden name="s_AuditingStatus" value="<%=event.getAuditingStatus()%>"> <!--审核状态-->
<input type=hidden name="s_WarehouseCode" value="<%=event.getWarehouseCode()%>"><!--仓库编码-->
<input type=hidden name="s_CategoryCode" value="<%=event.getCategoryCode()%>"><!--仓库编码-->
<input type=hidden name="s_UpperCategoryCode" value="<%=event.getUpperCategoryCode()%>"><!--仓库编码-->
<input type=hidden name="s_GrandfatherCategoryCode" value="<%=event.getGrandfatherCategoryCode()%>"><!--仓库编码-->

<input type=hidden name="s_CreateTimeStart" value="<%= event.getCreateTimeStart() %>">
<input type=hidden name="s_CreateTimeEnd" value="<%= event.getCreateTimeEnd() %>">

<input type=hidden name="i_IsNormal" value="<%= ConstDefine.STR_NO %>">

<%@ include file="/framework/list_head.jsp"%>

<br>
<!--********************* Part5:Search Area ***************-->
<%=uiSearchStart%>>
<%
    int key_tab = 1 ;
%>
 <%=uiSearchInputTR%>>
    <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>
            产品分类：&nbsp;&nbsp;
            <%=SelectManager.viewGrandFatherSelect(con,"i_GrandfatherCategoryCode",event.viewGrandfatherCategoryCode(),true,"","--一级--","","onchange='selectOnChange1()' key_tab="+(key_tab++))%>
            <%=SelectManager.viewUpperSelect(con,"i_UpperCategoryCode",event.viewUpperCategoryCode(),true,"","--二级--","","onchange='selectOnChange2()' key_tab="+(key_tab++))%>
            <%=SelectManager.viewUpperSelect(con,"i_CategoryCode",event.viewCategoryCode(),true,"","--三级--","","key_tab="+(key_tab++))%>
        </td>   
    </tr>    
    <%=uiSearchInputTDHead%>>
           产品编码：&nbsp;&nbsp;
          <input type="text" class="texts" name="i_ConcentricityCode" size="20" value="<%=event.viewConcentricityCode()%>" key_tab="<%=key_tab++%>">
           &nbsp;&nbsp;&nbsp;&nbsp;产品名称：&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="text" class="texts" name="i_Name" size="20" value="<%=event.viewName()%>" key_tab="<%=key_tab++%>">
            &nbsp;&nbsp;&nbsp;&nbsp;规格：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" class="texts" name="i_Spec" size="20" value="<%=event.viewSpec()%>" key_tab="<%=key_tab++%>">
        </td>        
    </tr>   
    <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>
            型号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
            <input type="text" class="texts" name="i_Model" size="20" value="<%=event.viewModel()%>" key_tab="<%=key_tab++%>">
        
           &nbsp;&nbsp;&nbsp;&nbsp;品牌：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" class="texts" name="i_ProductBrand" size="20" value="<%=event.viewProductBrand()%>" key_tab="<%=key_tab++%>">
        
            &nbsp;&nbsp;&nbsp;&nbsp;生产厂商：&nbsp;&nbsp;
        
            <input type="text" class="texts" name="i_Manufaturer" size="20" value="<%=event.viewManufaturer()%>" key_tab="<%=key_tab++%>">
        </td>              
    </tr>
    <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>
            供应商：&nbsp;&nbsp;&nbsp;&nbsp;
           <input type="text" class="texts" name="i_ProviderCode" size="20" value="<%=event.getProviderCode()%>" key_tab="<%=key_tab++%>"> 
              
          &nbsp;&nbsp;&nbsp;&nbsp;图件号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
            <input type="text" class="texts" name="i_DrawingPieceCode" size="20" value="<%=event.viewDrawingPieceCode()%>" key_tab="<%=key_tab++%>">
            <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
            &nbsp;&nbsp;&nbsp;&nbsp;是否有效：&nbsp;&nbsp;
            <%=SelectManager.viewYesOrNoSelect("i_Status",event.viewStatus(),true,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>            
            <%} %>
        </td>          
    </tr>
     <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
         <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>审核状态：&nbsp;&nbsp;
            <%=SelectManager.viewAuditing("i_AuditingStatus",event.viewAuditingStatus(),true,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>            
          
            
              </td>
        </tr>
          <%} %>
     <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>关键字：&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" class="texts" name="i_KeyWord" size="20" value="<%=event.viewKeyWord()%>" key_tab="<%=key_tab++%>">
            <% out.print("(对产品编码、名称、型号、规格、品牌、生产厂商、附加属性等七个关键字的模糊查询）");%>
           
        </td>
        </tr>


     <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>
            所属仓库：&nbsp;&nbsp;
             <%=SelectManager.viewWarehouseSelect(con,loginInfo.getLoginWarehouseCode(),"i_WarehouseCode",event.viewWarehouseCode(),true,"00|" + loginInfo.getLoginWarehouseCode(),SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>
            &nbsp;&nbsp;&nbsp;&nbsp;产品创建时间：
            <%=framework.custom.UIManager.generateDateInput("i_CreateTimeStart", event.viewCreateTimeStart())%> 至 <%=framework.custom.UIManager.generateDateInput("i_CreateTimeEnd", event.viewCreateTimeEnd())%>
        </td>       
    </tr>
     <%=uiSearchInputTR%>>
    <%=uiSearchInputTR%>>
        <%=uiSearchInputTDHead%>>
           是否可采购:
             &nbsp;<%=SelectManager.viewYesOrNoSelect("i_IsBuy",event.viewIsBuy(),true,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>
           &nbsp;&nbsp;&nbsp;&nbsp;按排序：
       
            <select name="i_OrderField">
                <option value="" <%=(event.getOrderField().equals("1"))?"selected":""%>>设置排序字段</option>
                <option value="CATEGORY_CODE" <%=(event.getOrderField().equals("CATEGORY_CODE"))?"selected":""%>>产品分类编码</option> 
                <option value="APEP_CODE" <%=(event.getOrderField().equals("APEP_CODE"))?"selected":""%>>产品编码</option>
                <option value="NAME" <%=(event.getOrderField().equals("NAME"))?"selected":""%>>产品名称</option>
                <option value="SPEC" <%=(event.getOrderField().equals("SPEC"))?"selected":""%>>规格</option>
                <option value="MODEL" <%=(event.getOrderField().equals("MODEL"))?"selected":""%>>型号</option>
                <option value="PRODUCT_BRAND" <%=(event.getOrderField().equals("PRODUCT_BRAND"))?"selected":""%>>品牌</option>
                <option value="MANUFATURER" <%=(event.getOrderField().equals("MANUFATURER"))?"selected":""%>>生产厂家</option>
                <option value="DRAWING_PIECE_CODE" <%=(event.getOrderField().equals("DRAWING_PIECE_CODE"))?"selected":""%>>图件号</option>
                <option value="WAREHOUSE_NAME" <%=(event.getOrderField().equals("WAREHOUSE_NAME"))?"selected":""%>>所属仓库</option>
                <option value="IS_BUY" <%=(event.getOrderField().equals("IS_BUY"))?"selected":""%>>是否可采购</option>
                <option value="PROVIDER_CODE" <%=(event.getOrderField().equals("PROVIDER_CODE"))?"selected":""%>>供应商编码</option>
   
            </select>
            &nbsp;
            <input type="radio" name="i_OrderDesc" value="false" <%=(event.isOrderDesc()==false)?"checked":""%> >升序
            <input type="radio" name="i_OrderDesc" value="true"  <%=(event.isOrderDesc()==true)?"checked":""%>  >降序
            <input type="button" value="查询" class="buttons" onclick="doSearch();return false;"><input type="button" value="清空" class="buttons" onclick="doClearEvent();var obj = document.all.i_WarehouseCode; obj.value='<%= "00|" + loginInfo.getLoginWarehouseCode() %>';return false;">
        </td>
    </tr>

<%=uiSearchEnd%>

<!--列表标题-->
<%=UIManager.addListHeadTitle("临时产品列表")%>

<!--********************* Part6:List Area ***************-->

<%=uiListStart%>>


<%@ include file="/framework/list_foot.jsp"%>

<%
    int index = 1 ;
%>  
    <%=uiListHeadTR%>>
        <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
        <td> 
        </td>
        <%}%>
        <%=UIManager.addListHead("产品编码",index++)%>
        <%=UIManager.addListHead("产品名称",index++)%>
        <%=UIManager.addListHead("供应商",index++)%>
        <%=UIManager.addListHead("单价",index++,"num")%>
        <%if(isPlanPrice.equals("1")){%>
        <%=UIManager.addListHead("计划价",index++,"num")%>
        <%}%>
        <%=UIManager.addListHead("计量单位",index++)%>
        <%=UIManager.addListHead("质保期",index++)%>
        <%=UIManager.addListHead("规格",index++)%>
        <%=UIManager.addListHead("型号",index++)%>
        <%=UIManager.addListHead("品牌",index++)%>
        <%=UIManager.addListHead("生产厂家",index++)%>
        <%=UIManager.addListHead("所属仓库",index++)%>
        <%=UIManager.addListHead("创建时间",index++)%>
        <%=UIManager.addListHead("是否采购",index++)%>
        <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
        <%=UIManager.addListHead("是否有效",index++)%>
        <%=UIManager.addListHead("审核状态",index++)%>
        <%=UIManager.addListHead("审核意见",index++)%>
        <%}%>
        <%=UIManager.addListHead("操作",-1)%>  
    <%=uiListHeadTREnd%>>
    
    <!--data-->
<%
    for(int i=0;i<list.size();i++)
    {
        Product obj = (Product)list.get(i);   
        String [] warehouses = GSBaseConstants.WAREHOUSTS_NO_AUDITING;
        boolean flag =false;
        for(int y =0;y< warehouses.length;y++){
            if(obj.viewWarehouseCode(con).trim().equals(warehouses[y].trim())){              
                flag = true;
                break;
            }  
        }
       if(flag){
           continue;
       }
%>

    <%=uiListDataTR[i%2]%> align=center>
        <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
        <td align="center"> 
        <input type=checkbox id='ids' name="temporary_manufacture" value="<%=obj.viewConcentricityCode(con)%>" onclick="">
        </td>
        <%}%>
        <%=uiListDataTD%>><%=obj.viewConcentricityCode(con)%></td>
        <%=uiListDataTD%>><%=obj.viewName(con)%></td>
        <%=uiListDataTD%>><%=obj.viewProviderCode(con)%></td>
        <%=uiListDataTD%>><%=obj.viewUnitPrice(con)%></td>
        <%if(isPlanPrice.equals("1")){%>
        <%=uiListDataTD%>><%=obj.viewPlanPrice(con)%></td>
        <%}%>
        <%=uiListDataTD%>><%=obj.viewProductUnit(con)%></td>
        <%=uiListDataTD%>><%=obj.viewQualityAssurePeriod(con)%></td>
        <%=uiListDataTD%>><%=obj.viewSpec(con)%></td>
        <%=uiListDataTD%>><%=obj.viewModel(con)%></td>
        <%=uiListDataTD%>><%=obj.viewProductBrand(con)%></td>
        <%=uiListDataTD%>><%=obj.viewManufaturer(con)%></td>

        <%=uiListDataTD%>><%=obj.viewWarehouseName(con)%></td>
        <%=uiListDataTD%>><%=(obj.viewCreateTime(con).length() > 10) ? obj.viewCreateTime(con).substring(0, 10) : obj.viewCreateTime(con)%></td>
        <%=uiListDataTD%>><%=obj.viewIsBuy(con)%></td>
        <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
        <%=uiListDataTD%>><%=obj.viewStatus(con)%></td>
        <%=uiListDataTD%>><%=obj.viewAuditingStatus(con)%></td>
        <%=uiListDataTD%>><%=obj.viewAuditingMessage(con)%></td>
        <%}%>
        <%=uiListDataTD%>>
            <a href="" onclick="bizViewProduct('<%=obj.getId()%>');return false;">浏览</a>
        </td>
    </tr>
    
<%  
    }
%>  

<%@ include file="/framework/list_foot2.jsp"%>

<%=uiListEnd%>
<!--********************* Part7:Action Area ***************-->
<%=uiCommandStart%>>
    <%=uiCommandTR%>>
        <%=uiCommandTD%>>
        <!-- <input type=button value="　添加临时产品　" class="buttons" onclick="doToAdd();return false;"> -->
        <!-- <input type=button value="　修改临时产品　" class="buttons" onclick="doToUpdate();return false;"> -->
        <!--  <input type=button value="    合并产品   " class="buttons" onclick="doDelete();return false;">-->
         <input type=button value="　　导出EXCEL　　" class="buttons" onclick="doExcel();return false;">
         <%if(auditing.equals("1")&&canAuditing.equals("1")){%>
        <input type=button value="　　审核通过　　" class="buttons" onclick="setIsbuy();return false;">
        <input type=button value="　　审核不通过　　" class="buttons" onclick="setAuditingNo();return false;">
        <input type=button value="　　审核待修改　　" class="buttons" onclick="setAuditingModiy();return false;">
        <%}%>
        
        
    </tr> 
<%=uiCommandEnd%>
</form>
<script language=javascript>
    selectOnChange1();
    SetValue("i_UpperCategoryCode","<%=event.getUpperCategoryCode()%>"); //产品分类编码
    selectOnChange2();
    SetValue("i_CategoryCode","<%=event.viewCategoryCode()%>"); //产品分类编码
</script>
<%@ include file="/framework/foot.jsp"%>

<!--
    Author    :Arrow
    FileName  :/system/base/ProductTempList.jsp
-->
